home *** CD-ROM | disk | FTP | other *** search
- * LED and Typematic selection script
- * This script sets the typematic rate and delay, as well as playing
- * with the LEDs. It allows the user to verify that the rate
- * and delay have been changed by letting them type at the prompt.
- * If no input is recieved, the prompt times out after 10 seconds.
- @thread set.out
- @newalias kbd kbd.gra
- @log "Setting typematic and LEDs (non-interrupt)"
- kbd kbd_open
- kbd kbd_query_typematic
- kbd kbd_set_typematic typasel=31 DELAYSEL=3
- kbd kbd_query_typematic
- kbd kbd_query_leds
- kbd kbd_set_LEDs LEDS=111
- kbd kbd_query_leds
- * kbd response $PROMPT="Try the slow keyboard..." $PAUSE=10
- @log "Resetting typematic and LEDs (interrupt)"
- kbd kbd_query_typematic
- kbd kbd_set_typematic_i typasel=0 delaysel=0
- kbd kbd_query_typematic
- kbd kbd_query_leds
- kbd kbd_set_leds_i leds=000
- kbd kbd_query_leds
- kbd kbd_close
-